
// 1.引入 基础请求方法和类型文件
import http from "./config"
import { rescovidType,loginType,cancelcovidOrderType,graphicsType,graphicsFileType,patientResType,phyqueryType,phyDeatilQueryType,resPhyType,testQuerType,vedioQueryType} from "../types/index"

// 2.---------------------封装首页数据接口--------------------------------
export let reqGetHome = () => http({ url: "/frontpage" })
// 3.--------------------封装新冠疫苗数据接口------------------------------
export let reqNewapptime = () => http({ url: "/newapptime" })
export let reqRescovid = (data: rescovidType) => http({ url: "/rescovid", method: "POST", data })
export let reqCoviduserOrder = () => http({ url: "/coviduser_order" })
export let reqCovidcancelOrder = (data:cancelcovidOrderType) => http({ url: "/covidcancel?query=",method:"GET",data })
// 4.--------------------封装用户登录数据接口------------------------------
export let reqWxlogin = (data: loginType) => http({ url: "/wx_login", method: "POST", data })

// 5.--------------------封装HPV疫苗数据接口------------------------------
export let reqOtuhpv = () => http({ url: "/otuhpv"})
export let reqHpvPack = () => http({ url: "/hpv_pack"})
export let reqHpvPrice = (data) => http({ url: "/hpv_price",method:"POST",data})
export let reqReshpv = (data) => http({ url: "/reshpv", method: "POST", data })
export let reqHpvuserOrder = () => http({ url: "/hpvuser_order"})
export let reqHpvcancel = (data) => http({ url: "/hpvcancel?query=", method: "GET", data })
// 6.--------------------封装核算检测数据接口------------------------------
export let reqNuataget = () => http({ url: "/nuataget" })
export let reqResnuata = (data) => http({ url: "/resnuata", method: "POST", data })
export let reqNuatauserOrder = () => http({ url: "/nuatauser_order" })
export let reqNuatacancel = (data) => http({ url: "/nuatacancel?query=", method: "GET", data })

// 7.--------------------封装图文咨询数据接口------------------------------
export let reqGraphics = (data:graphicsType) => http({ url: "/graphics", method: "POST", data })
export let reqGraphicsUpload = (data: graphicsFileType) => http({ url: "/upload_picture", method: "GET", data })

// 8.--------------------封装就诊人数据接口------------------------------
export let reqPatient = () => http({ url: "/get_patient" })
export let reqPatientRes = (data: patientResType) => http({ url: "/patient_res", method: "POST", data })

// 9.--------------------封装健康体检数据接口------------------------------
export let reqPhyterm = () => http({ url: "/phyterm" })
export let reqPhysget = () => http({ url: "/physget" })
export let reqPhyquery = (data:phyqueryType) => http({ url: "/phyquery", method: "POST", data})
export let reqPhydateil = (data:phyDeatilQueryType) => http({ url: "/phydateil?query=", method: "GET", data })
export let reqResphy = (data: resPhyType) => http({ url: "/resphy", method: "POST", data })

// 10.--------------------封装检测健康自测检数据接口------------------------------
export let reqDepressionTopics = () => http({ url: "/depression_topics" })
export let reqPrematureTopics = () => http({ url: "/premature_topics" })
export let reqInsomniaTopics = () => http({ url: "/insomnia_topics" })

export let reqepression = (data:testQuerType) => http({ url: "/depression?query=",method: "GET", data })
export let reqPremature = (data:testQuerType) => http({ url: "/premature?query=",method: "GET", data})
export let reqInsomnia = (data:testQuerType) => http({ url: "/insomnia?query=",method: "GET", data})

// 11.--------------------封装在线医师课堂检数据接口------------------------------
export let reqVideoList = (data:vedioQueryType) => http({ url: "/video_list?query=",method: "GET", data  })